home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
BCI NET
/
BCI NET Dec 94.iso
/
archives
/
diskmags
/
ardisk3.lha
/
NoReboot.lha
/
NoReboot.c
< prev
Wrap
C/C++ Source or Header
|
1994-07-12
|
951b
|
35 lines
/*
** NoReboot
**
** Written by Stuart MacKinnon on 01/01/94, 3:00am - just after new year!
**
** Compiled with SAS/C 6.50 (I was the first person in Australia to get it!!)
**
** Recompiled with SAS/C 6.51 on 20/02/94.
**
** This code should be able to be compiled with any C compiler, given the
** right includes. If you don't have SAS/C or something that can do tag
** calls directly, then you will probably need the latest amiga.lib linker
** library for the stub for the SystemControl() function.
**
** This file, along with its executable is completely public domain. You
** can hack it, mash it, destroy it in any way you like.
*/
#include <exec/types.h>
#include <proto/exec.h>
#include <proto/lowlevel.h>
struct Library *LowLevelBase = NULL;
void main (void)
{
LowLevelBase = OpenLibrary ("lowlevel.library", 40);
if (LowLevelBase != NULL)
{
SystemControl (SCON_CDReboot, CDReboot_Off,
TAG_END);
CloseLibrary (LowLevelBase);
}
}